package com.example.authservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.authservice.pojo.po.UserPO;
import com.example.authservice.pojo.vo.UserVo;
import com.example.baseserver.exception.SavaException;
import com.example.baseserver.util.Reply;
import org.springframework.stereotype.Component;


/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2023/3/3 15:07
 */
@Component
public interface UserService{
    UserPO add(UserVo userVo);

    UserVo selectOneByIdReturnVO(String id);

    UserPO save(UserVo userVO);

    Integer deleteById(String id);

    Reply selectOneById(String id);

    UserPO findByUsername(String s);

    Reply register(UserVo userVO) throws SavaException;

    Reply<UserVo> update(UserVo userVO);

    UserVo addOneUser(UserVo userVO);

    Page<UserVo> getPage(UserVo userVO);

    void addTestData();
}
